/* vue */
import { defineComponent } from "vue"
/* mixin */
import VersionControlBaseMixin from '@src/mixins/versionControlMixin/base';
/* version pay */
import {
  isShowPayModule
} from '@shb-lib/version';

export default defineComponent({
  name: "version-control-pay-mixin",
  mixins: [VersionControlBaseMixin],
  computed: {
    /** 
     * @description 支付 模块 版本控制
    */
    payVersionControl(): Record<string, boolean> {
      return {
        isShowPayModule: isShowPayModule(this._versionControlMap),
      }
    },
    _isShowPayModule(): boolean {
      return this.payVersionControl.isShowPayModule
    }
  }
})
